<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link href="/resource/css/admin/main.css" type="text/css" rel="stylesheet" />
<link href="/resource/css/admin/right.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/resource/js/jquery.js"></script>
<script type="text/javascript" src="/resource/js/base.js"></script>
</head>
<body>
	<div class="position"><span>您的当前位置：</span>文档管理 > 文档回收站</div>
    <form method="post" action="./">
    	<div class="rightbody f">
    		<div class="rightbodycontent">
		    	<table class="tools">
		        	<tr>
		            	<td>
		                   	 标题：<input type="text" name="title" value="${title!}" style="width:200px" />&nbsp;<a onclick="getform(this).submit()" class="linkbtn search">搜索</a>
		                   	 <#if Session.admin.adminGlobalpermission.id gt 1>
		                   	 	&nbsp;<label><input type="checkbox" name="onlyme"<#if onlyme> checked</#if> onclick="getform(this).submit()" />只看我的</label>
		                   	 </#if>
		                </td>
		                <td align="right">
		                    <a onclick="submitselectdata('recover?articleids','恢复','callbackparams=${urlEncode(callbackparams)}')" class="linkbtn recover">恢复所选文档</a>&nbsp;
		                    <a onclick="submitselectdata('delete?articleids','永久删除','callbackparams=${urlEncode(callbackparams)}')" class="linkbtn delete">删除所选文档</a>
		                </td>
		            </tr>
		        </table>
		        <table cellspacing="1" cellpadding="4" class="tablelist">
		            <tr>
		                <th><input type="checkbox" onclick="selectallcheckbox(this)" /></th>
						<th>管理者</th>
		                <th>标题</th>
		                <th>来源</th>
		                <th>发布时间</th>
		                <th>移除时间</th>
		                <th>栏目数</th>
		                <th>操作</th>
		            </tr>
		            <#list articles as article>
                        <#assign articleColumns = "">
                        <#list article.articleReColumnses as arc>
							 <#assign articleColumns = articleColumns + " " + arc.columns.name>
						</#list>
		            	<tr<#if article_index % 2 == 1> class="splittr"</#if>>
			                <td align="center"><input type="checkbox" name="ids" value="${article.id}" /></td>
			                <td align="center">${article.admin.name}</td>
			                <td align="center">${article.title}<#if article.image??> <img src="/resource/image/admin/main/right/image.png" height="13" style="vertical-align:text-bottom;" /></#if></td>
			                <td align="center">${article.source}</td>
			                <td align="center">${article.publishtime?string('yyyy-MM-dd HH:mm:ss')}</td>
			                <td align="center">${article.removetime?string('yyyy-MM-dd HH:mm:ss')}</td>
                            <td align="center"<#if articleColumns != ""> title="${articleColumns?trim}"</#if>>${article.articleReColumnses?size}</td>
			                <td align="center">
			                	<a href="recover?articleids=${article.id}&callbackparams=${urlEncode(callbackparams)}" class="linkbtn recover noborder">恢复</a>
		                        <a href="delete?articleids=${article.id}&callbackparams=${urlEncode(callbackparams)}" class="linkbtn delete noborder" onclick="return confirm('确定永久删除吗？')">删除</a>
			                </td>
			            </tr>
		            </#list>
		        </table>
		        <br />
				<#include "../../include/pager.html">
			</div>
		</div>
    </form>
</body>
</html>